<!DOCTYPE html>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<html>
<head>
<title>${name_china}模板</title>
<%@include file="/common/head.jsp" %>
</head>
<body class="iframe-page">
	<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>${name_china}管理</span>
        </div>
        <div id="toolbar" style="float: right"></div>
    </div>
    <div class="page-title-border"></div>
   </div>
		
	<div id="screen">
	    <img id="preview" src="<%=request.getContextPath()%>/static/images/logo.png"></img>
	</div>  
		
	<script>
	  var  permission = CommonUtil.getPermission('screen');
	 
		//页面初始化
		$(function() {
			// 截图toobar
			$.funcbar({
				id: 'toolbar',
				type: 'toolbar',
				data: permission,
				permit: ['${name_english}:cut'],
			});
			
			 //截图
	        $('#toolbar').on('click', 'a[data-permit="${name_english}:cut"]', function() {
	        	cut(); 	  	
			});
	        
		});
		function cut(){
			$.ajax({
				url:CONST_URL.CUT,
				type:"get",
				success:function(data){
					$("#preview").attr("src",data);
				}
			});
			
		}
		 //请求url
	    var CONST_URL = {
	   		CUT: basePath + '${common_url}cut'
	    };
	</script>     
</body>

</html>